<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>六西格玛知识管理</title>
<link href="<?php echo $this->baseUrl ?>/public/style/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl ?>/public/style/daterangepicker.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl ?>/public/style/jquery-ui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/jquery.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/daterangepicker.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/jquery-ui.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/fckeditor/fckeditor.js"></script>
</head>

<body>
<!--头部-->
<?php echo $this->partial('common/header.html', array('template'=>$this->template, 'baseUrl'=>$this->baseUrl)) ?>

<!--主体-->
<div class="main-box" id="mainBox">
	<div class="third-menu">
		<?php echo $this->partial('common/operation.html', array('template'=>$this->template, 'baseUrl'=>$this->baseUrl)) ?>
		<div class="menu-title"><span class="icon"></span>标签详细信息页</div>
	</div>
  
	<div class="separate-line"></div>
	<div class="main-form">
		<div class="project-show">
            <h2 class="project-title"><?php echo $this->tag[0]['name']; ?></h2>
            <div class="project-info">
                <span>关键字：<?php echo $this->tag[0]['key_word']; ?></span>
            </div>
            <div class="project-desc">
            	<div class="project-border">
                	标签描述：<?php echo !empty($this->tag[0]['summary'])?$this->tag[0]['summary']:'暂无信息'; ?>
                </div>
            </div>
        </div>
        
        <?php if($this->projects): ?>
        <div class="project-show">
        	<div class="project-desc">
            <div class="project-border">
                <dl class="class-info">
                    <dd>
                    <table width="760px">
                    <tr><th colspan="3" style="font-size:14px; color:#C00">标签相关项目</th></tr>
                    <tr align="center">
                    	<th>项目名称</th>
                        <th>关键字</th>
                        <th>项目时间</th>
                    </tr>
                    <?php foreach ($this->projects as $key => $val): ?>
                        <tr align="center">
                        	<td>
                            	<a href="<?php echo $this->baseUrl; ?>/project/detail?project_id=<?php echo $val['project_id']; ?>" target="_blank">
                            	<?php echo $val['title']; ?>
                                </a>
                            </td>
                            <td><?php echo $val['key_word']; ?></td>
                            <td><?php echo !empty($val['start_time'])?date('Y年',$val['start_time']):'未填写'; ?></td>
                        </tr>
                    <?php endforeach; ?>
                    </table>
                    </dd>
                </dl>
           <div class="page-bar2">
                <div>总数：<span class="total-count"><?php echo $this->pro_total ?></span></div>
                <div>
                <?php if ($this->pro_page > 1): ?>
                <a href="<?php echo $this->baseUrl ?>/tag/detail?tag_id=<?php echo $this->tag[0]['tag_id']; ?>&pro_page=1">首页</a>
                <?php else: ?>
                首页
                <?php endif; ?>
                <?php if ($this->pro_page > 1): ?>
                <a href="<?php echo $this->baseUrl ?>/tag/detail?tag_id=<?php echo $this->tag[0]['tag_id']; ?>&pro_page=<?php echo $this->pro_page-1 ?>">上一页</a>
                <?php else: ?>
                上一页
                <?php endif; ?>
                <?php if ($this->pro_page < $this->pro_pages): ?>
                <a href="<?php echo $this->baseUrl ?>/tag/detail?tag_id=<?php echo $this->tag[0]['tag_id']; ?>&pro_page=<?php echo $this->pro_page+1 ?>">下一页</a>
                <?php else: ?>
                下一页
                <?php endif; ?>
                <?php if ($this->pro_page < $this->pro_pages): ?>
                <a href="<?php echo $this->baseUrl ?>/tag/detail?tag_id=<?php echo $this->tag[0]['tag_id']; ?>&pro_page=<?php echo $this->pro_pages ?>">尾页</a>
                <?php else: ?>
                尾页
                <?php endif; ?>
                </div>
                <div>页数：<span class="page-detail"><?php echo $this->pro_page ?>/<?php echo $this->pro_pages ?></span></div>
          	</div>
            </div>
            </div>
        </div>
        <?php endif; ?>
        
		<?php if($this->students): ?>
        <div class="project-show">
        	<div class="project-desc">
            <div class="project-border">
                <dl class="class-info">
                    <dd>
                    <table width="760px">
                    <tr><th colspan="3" style="font-size:14px; color:#C00">标签相关学生</th></tr>
                    <tr align="center">
                    	<th>学生姓名</th>
                        <th>学生职务</th>
                    </tr>
                    <?php foreach ($this->students as $key => $val): ?>
                        <tr align="center">
                        	<td>
                            	<a href="<?php echo $this->baseUrl; ?>/student/detail?student_id=<?php echo $val['student_id']; ?>" target="_blank">
                            	<?php echo $val['name']; ?>
                                </a>
                            </td>
                            <td>
                                <?php echo $val['duties']; ?>  
                            </td>
                        </tr>
                    <?php endforeach; ?>
                    </table>
                    </dd>
                </dl>
           <div class="page-bar2">
                <div>总数：<span class="total-count"><?php echo $this->stu_total ?></span></div>
                <div>
                <?php if ($this->stu_page > 1): ?>
                <a href="<?php echo $this->baseUrl ?>/tag/detail?tag_id=<?php echo $this->tag[0]['tag_id']; ?>&stu_page=1">首页</a>
                <?php else: ?>
                首页
                <?php endif; ?>
                <?php if ($this->stu_page > 1): ?>
                <a href="<?php echo $this->baseUrl ?>/tag/detail?tag_id=<?php echo $this->tag[0]['tag_id']; ?>&stu_page=<?php echo $this->stu_page-1 ?>">上一页</a>
                <?php else: ?>
                上一页
                <?php endif; ?>
                <?php if ($this->stu_page < $this->stu_pages): ?>
                <a href="<?php echo $this->baseUrl ?>/tag/detail?tag_id=<?php echo $this->tag[0]['tag_id']; ?>&stu_page=<?php echo $this->stu_page+1 ?>">下一页</a>
                <?php else: ?>
                下一页
                <?php endif; ?>
                <?php if ($this->stu_page < $this->stu_pages): ?>
                <a href="<?php echo $this->baseUrl ?>/tag/detail?tag_id=<?php echo $this->tag[0]['tag_id']; ?>&stu_page=<?php echo $this->stu_pages ?>">尾页</a>
                <?php else: ?>
                尾页
                <?php endif; ?>
                </div>
                <div>页数：<span class="page-detail"><?php echo $this->stu_page ?>/<?php echo $this->stu_pages ?></span></div>
          	</div>     
            </div>
            </div>
        </div>
        <?php endif; ?>
	</div>
</div>


<!--底部-->
<?php echo $this->partial('common/footer.html') ?>
</body>
</html>
